import Vue from 'vue'
import Vuex from 'vuex'
// import VuexPersistence from 'vuex-persist'
import createPersistedState from "vuex-persistedstate"

import index from './modules/index';//头部、公共文件
import login from './modules/login';//登录
import systemset from './modules/systemset';//登录
import order from './modules/order';//登录

Vue.use(Vuex)

// const vuexLocal = new VuexPersistence({
//     storage: window.sessionStorage,
// })
export default new Vuex.Store({
    modules: {
        index,
		login,
		systemset,
		order
    },plugins: [createPersistedState({
      storage: window.sessionStorage
  })]
  	// plugins: [vuexLocal.plugin]
})